package main

import (
	"net/http"
	"gxgeek.com/gxgeek/learngo/crawler/frontend/controller"
)

func main()  {
	http.Handle("/search",controller.CreateSearchResultHandler("crawler/frontend/view/template.html"))
	//静态文件
	http.Handle("/", http.FileServer(
		http.Dir("crawler/frontend/view")))
	err := http.ListenAndServe(":8889", nil)
	if err!=nil {
		panic(err)
	}

}